package com.zzf.concurrent.example.design.pattern.active.object;

/**
 * @author GaoFeng2017
 * @date 2019/9/11 14:35
 */
public class PrintStringRequest extends MethodRequest {

    private String text;

    public PrintStringRequest(Servant servant, String text) {
        super(servant, null);
        this.text = text;
    }

    @Override
    public void execute() {
        this.servant.printString(text);
    }

}
